﻿using DevFramework.Entities.Concrete;
using FluentNHibernate.Mapping;

namespace DevFramework.DataLayer.Concrete.NHibernate.Mapping
{
    public class LanguageWordMap : ClassMap<LanguageWord>
    {
        public LanguageWordMap()
        {
            Table(@"LanguageWords");

            LazyLoad();

            Id(x => x.Id)
              .Not.Nullable()
              .GeneratedBy.Assigned();

            Map(x => x.LanguageId).Not.Nullable();

            Map(x => x.Code).Not.Nullable();

            Map(x => x.Value).Not.Nullable();
        }
    }
}
